<?php
set_time_limit(0);
include 'SetCover.php';
include 'SimulatedAnnealing.php';

$fileName = 'set_1.txt';

$annealing = new SimulatedAnnealing();

$annealing->readFile($fileName);

var_dump($annealing->annealingIterative());
// $weighted = false;




// for ($i = 1; $i <= 10; $i++) {
// 	$fileName = 'set_' . $i . '.txt';
// 	echo $fileName . '<br>';
// 	$setCover = new SetCover($fileName);
// 	$result = $setCover->findMinimumSetCover($weighted);
// 	printResult($result);
// }

// function printResult($array) {
// 	foreach ($array as $i => $subset) {
// 		echo "S<sub>" . $i ."</sub>: \t{" . implode(', ', $subset) . "}<br>";
// 	}
// }